Skip to content

Allow quoted file paths when redirecting with < and >#328

Merged
tleonhardt merged 1 commit intomasterfrom
redirect_quoted
Mar 24, 2018
Merged

Allow quoted file paths when redirecting with < and >#328
tleonhardt merged 1 commit intomasterfrom
redirect_quoted

Conversation

@kmvanbrunt
Copy link
Copy Markdown
Member

< and > did not handle quoted file paths
@tleonhardt
@kotfu Make sure to handle this case in the parsing improvements you are making

@kmvanbrunt kmvanbrunt requested a review from tleonhardt as a code owner March 24, 2018 19:08
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 24, 2018

Codecov Report

Merging #328 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #328      +/-   ##
==========================================
+ Coverage      91%   91.01%   +<.01%     
==========================================
  Files           1        1              
  Lines        1635     1636       +1     
==========================================
+ Hits         1488     1489       +1     
  Misses        147      147
Impacted Files Coverage Δ
cmd2.py 91.01% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e056174...a5054a0. Read the comment docs.

Copy link
Copy Markdown
Member

@tleonhardt tleonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kmvanbrunt
Next time you update the CHANGELOG.md, make sure to throw in a note about this bug fix.

Comment thread cmd2.py
"""
try:
with open(os.path.expanduser(fname[0])) as source_file:
# Any outer quotes are not part of the filename
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice little fix. It would be undesirable to create a file name with quotes in it.

The new behavior is much better.

@tleonhardt tleonhardt added the bug label Mar 24, 2018
@tleonhardt tleonhardt added this to the 0.8.3 milestone Mar 24, 2018
@tleonhardt tleonhardt merged commit 6005458 into master Mar 24, 2018
@tleonhardt tleonhardt deleted the redirect_quoted branch March 24, 2018 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants